package com.tyk.bookstore.back.storage.model.query;

import com.tyk.bookstore.back.common.core.model.page.PageQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author tyk
 * @description 仓库
 */
@Data
public class WarehousePageQuery extends PageQuery {

    @Schema(description = "ID")
    @Min(1)
    private Long id;

    @Schema(description = "名称")
    private String nameLike;

    @Schema(description = "所在区域ID(任意级别)")
    @Min(1)
    private Long areaCode;

    @Schema(description = "寄件方ID")
    @Min(1)
    private Long userId;

    @Schema(description = "寄件方姓名")
    private String senderName;

    @Schema(description = "寄件方电话")
    private String senderPhone;

    @Schema(description = "创建时间：起始时间")
    private LocalDateTime startTime;

    @Schema(description = "创建时间：终止时间")
    private LocalDateTime endTime;
}
